let obj = {
    name:'zs',
    age:20,
    objx:{
        name:'ls'
    }
}

let obj2 = {...obj}

console.log(obj)
console.log(obj2)

obj2.objx.name='xxx'
console.log(obj)
console.log(obj2)

// let obj1 = {name:'zs'}
// console.log(obj1)
// let obj2 = obj1
// console.log(obj2)
// obj2.name = 'ls'
// console.log(obj1)
// console.log(obj2)
